import java.util.Scanner;

public class Text19092301 {
public static void main(String[] args) {
	Scanner scanner=new Scanner(System.in);
	int f=scanner.nextInt();
	double c;
	c=(f-32)*5/9;
	System.out.printf("%.4f",c);
	scanner.close();
	}
}
